package com.wavehi.pojo;

import lombok.*;

import java.util.Date;

/**
 * @Author WaveHi
 * @Date 16/9/2021 上午 10:34
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Setter  @Getter @NoArgsConstructor @AllArgsConstructor @ToString
public class User {
    private Long id;//用户id
    private String username;//用户名
    private String password;//用户密码
    private String email;//邮箱
    private Date hireDate;//注册时间
    private String[] hobbies;//爱好

    public User(String username, String password, String email, Date hireDate) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.hireDate = hireDate;
    }

    public User(String username, String password, String email, Date hireDate, String[] hobbies) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.hireDate = hireDate;
        this.hobbies = hobbies;
    }

    public User(Long id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
}
